package com.aopeng.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
* @Description: 考卷表实体类
* @Author: 谢辉
* @CreateDate: 2020/7/10 20:48
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "aopeng_examination")
public class AopengExamination {

    @TableId(value = "id",type = IdType.AUTO)   //指定id并设置为自增
    private Long id;                            //试卷id
    private Long schoolId;                      //学校id
    private Integer examinationType;            //文章类型  1作业 2考试 已弃用！
    private Integer isOnLine;                   //在线离线  1.在线 2.离线
    private String examinationName;             //试卷名称
    private String examinationContent;          //试卷内容
    private int clickNumber;                    //文章访问量
    @TableField(exist = false)
    private String description;                 //描述一般截取文章前100个字符
    @TableField(exist = false)
    private AopengSchool aopengSchool;                //school类
    //字段填充内容
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;                    //创建时间
    private Long creator;                       //创建人
    //字段填充内容
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;                    //修改时间
    private Long updater;                       //修改人
    private Integer isDelete;                   //是否删除 1.未删除 2.已删除

}
